package com.wang.tool.monitor.log;

import com.wang.tool.monitor.core.LinkInfo;

public class LogInfo extends SimpleLog {

    /**
     * 当前节点 可能为空
     */
    private LinkInfo linkInfo;

    public LogInfo() {
    }

    public LogInfo(LinkInfo linkInfo, SimpleLog simpleLog) {
        this.linkInfo = linkInfo;
        if (simpleLog != null) {
            setAttachment(simpleLog.getAttachment());
            setContent(simpleLog.getContent());
        }
    }

    public LinkInfo getLinkInfo() {
        return linkInfo;
    }

    public void setLinkInfo(LinkInfo linkInfo) {
        this.linkInfo = linkInfo;
    }

}
